<template>
  <div>
    <div>我是组件D</div>
    <p>{{$parent.name}}--{{$parent.explan}}</p>
  </div>
</template>
<script>
export default {
  mounted() { // $parent 父组件的实例
    console.log(this.$parent);
  },
  methods: {
    eat(){
      console.log('大碗喝酒，大口吃肉！');
    }
  },
};
</script>
